package com.sqmf.util;

public enum ResultCode {
    /**
     * SUCCESS:成功
     * FAIL：失败
     */
    SUCCESS(0, "success"),
    FAIL(40002, "fail"),
    API_PARAM_MISS_ERROR(40001, "参数缺失"),
    API_QUERY_ERROR(100, "未找到相关记录"),
    API_DATA_ERROR(68, "数据异常"),
    API_SERVER_ERROR(999999, "抱歉，系统繁忙，请稍后重试！");


    int code;
    String message;

    ResultCode(int code, String message) {

        this.code = code;
        this.message = message;
    }


    public int code() {
        return this.code;
    }

    public String message() {
        return this.message;
    }

}
